package com.chen.controller;


import com.chen.service.HomeAdvertiseService;
import com.chen.vo.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 首页轮播广告表 前端控制器
 * </p>
 *
 * @author cws
 * @since 2024-11-22
 */
@RestController
@RequestMapping("/mall/homeAdvertise")
public class HomeAdvertiseController {


    @Resource
    private HomeAdvertiseService homeAdvertiseService;

    @ApiOperation("广告列表及新品推荐和热门推荐")
    @GetMapping("list")
    public Result list(){
        return Result.success(homeAdvertiseService.homeAdvertiseAndNewProductAndHotProduct());
    }

}

